import {
	config
} from "@/static/config.js"
const TOKENKEY = 'tocken'
// 设置token
export function setToken(token) {
	uni.setStorage({
		key: TOKENKEY,
		data: token
	})
}
// 获取baseUrl
export function getBaseUrl() {
	return (uni.getStorageSync("baseUrl")).length>0 ? uni.getStorageSync("baseUrl"):config.base_url;
}
// 获取enableEncrypt
export function getEnableEncrypt() {
	return config.enableEncrypt
}
// 获取token
export function getToken() {
	return uni.getStorageSync(TOKENKEY)
}
// 删除token
export function removeToken() {
	uni.removeStorage({
		key: TOKENKEY
	})
}